package edu.washington.cs.workflow.testgen;

import edu.washington.cs.workflow.analysis.guistructure.UIActionExecutor;
import edu.washington.cs.workflow.analysis.guistructure.UIActionExecutor_V2;
import edu.washington.cs.workflow.analysis.guistructure.UIActionTracer;
import edu.washington.cs.workflow.util.Log;
import edu.washington.cs.workflow.util.SimpleClock;
import edu.washington.cs.workflow.util.Utils;
import junit.framework.TestCase;

public class TestGenFreemind extends TestCase {

	String mainClass = "freemind.main.FreeMind";
	String[] args = new String[]{};
	
	public void testAllActions() {
		UIActionTracer.setDirAndProject("./experiments/statistics", "freemind");
		UIActionTracer.tracer.setTraceFile("./experiments/testgen/freemind.txt");
		SimpleClock.start();
//		Utils.debuglog = true;
//		Log.logConfig("./log.txt");
		UIActionExecutor.windowsPopTimeLimit = 1000;
//		UIActionExecutor tester = new UIActionExecutor(mainClass, args);
		UIActionExecutor_V2 tester = new UIActionExecutor_V2(mainClass, args);
		tester.setUsethread(true);
		tester.executeUIActions();
		Log.removeLogging();
		SimpleClock.stopAndPrint();
	}
	
}
